package com.xiaol.springbootredis.common.page;

//import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * User: chenshun131 <p />
 * Time: 18/6/9 10:22  <p />
 * Version: V1.0  <p />
 * Description: 分页查询条件基类 <p />
 */
@Data
public class PageQuery implements Serializable {

    private static final long serialVersionUID = 8214947250522637760L;

//    @ApiModelProperty(value = "查询页数，基于1")
    private int pageNum = 1;

//    @ApiModelProperty(value = "每页条数")
    private int pageSize = 10;

//    @ApiModelProperty(value = "开始条数")
    private int startRow;

//    @ApiModelProperty(value = "排序的字段")
    private String orderBy;

//    @ApiModelProperty(value = "排序的顺序，值必须是 ASC:升序排序 DESC:降序排序，默认是 DESC")
    private String sort = "DESC";

}
